$(function() {
	$(window).resize(function() { //浏览器窗口变化 
	
		$(".easyui-layout").layout('resize', {
			width: '100%',
			height: '100%',
		});
	});
})

function addTab(title, url) {
	if ($('#tt').tabs('exists', title)) {
		$('#tt').tabs('select', title);
	} else {
		var content = '<iframe scrolling="auto" frameborder="0"  src="' + url +
			'" style="width:100%;height:99.3%; overflow-y:hidden"></iframe>';
		$('#tt').tabs('add', {
			title: title,
			content: content,
			closable: true
		});
	}
}
